package com.vitalfit.model.vo;

import com.vitalfit.enums.ResultEnum;
import lombok.Data;

@Data
public class ResultVO <T>{

    private int code;
    private String message;
    private T data;

    public ResultVO(ResultEnum resultEnum, T data) {
        this.code = resultEnum.getCode();
        this.message = resultEnum.getMessage();
        this.data = data;
    }
}
